<script src="../media/system/js/mootools-core.js" type="text/javascript"></script>
<script src="../media/system/js/core.js" type="text/javascript"></script>

<form action="index.php?top=page&option=com_frclub" method="post" name="adminForm" id="adminForm" class="adminform">
    <!-- LEFT -->
    <?php echo $this->loadTemplate('search','default') ?>
    <!-- END LEFT -->
    <form action="index.php?top=page&option=com_frclub" method="post" name="adminForm" id="adminForm">
       <!-- CONTENT -->
       <div id="jm-content">
        <h3 class="jm-title">
            <?php
            if($this->sr=='1')
            {
                echo '検索結果';
            }
            else echo '新着情報';
            ?><a href="#" class="float-right" id="icon"></a></h3>
            <div class="">
                <?php $result = $this->result;
                if(!empty($result)){ 
                    foreach ($result as $key=>$ocba){
                        ?>
                        <div class="cc">
                            <h2 style="position: relative;">
                                <span class="id-cc"><?php echo $ocba->OCBA_CODE; ?></span>
                                <span><?php echo $ocba->OCBA_NAME; ?></span>
                                <span >
                                    <?php if ($ocba->OCBA_EFLAG == 1)
                                    echo '<label style="float: right;position:absolute;right:100px;top:5px;" class="jm_name" >休部中</label>';
                                    ?>
                                    
                                    <button style="float: right;position:absolute;right:5px;top:2px;" href="index.php?top=page&option=com_frclub&task=detail&id=<?php echo $ocba->OCBA_CODE; ?>">詳細情報へ</button>
                                </span>
                            </h2>
                            <table style="width: 680px;line-height:17px;" border=0>
                                <tbody>
                                    <tr>
                                        <td class="〒520-1655" style="vertical-align:top" ><?php if($ocba->OCBA_POST!=null) echo '〒'.$ocba->OCBA_POST; ?></td>
                                        <td style="width:340px;" colspan="2"><?php echo $ocba->OCBA_ADD1;echo "<br/>".$ocba->OCBA_ADD2; ?></td>
                                        <td class="left">【クラブ種別】</td>
                                    </tr>
                                    <tr>
                                        <td style="width: 20%;"></td>
                                        <td style="width: 25%;">Tel:<label><?php echo $ocba->OCBA_TEL; ?></label></td>
                                        <td style="width: 25%;">Fax：<label><?php echo $ocba->OCBA_FAX; ?></label></td>
                                        <td><label><?php echo $ocba->CLUB_NAME; ?></label></td>
                                        
                                    </tr>
                                </tbody>
                            </table>
                            <hr/>
                            
                        </div>
                        
                        <?php
                    }
                }
                else{

                    echo "<center>該当する検索結果は，存在しませんでした。検索条件を変えて検索してください。</center>";
                    
                }
                ?>
                
                <table style="margin: auto;">
                    <tfoot>
                     <tr>
                        <td colspan="15" style="text-align: center;">
                            <?php echo $this->pagination->getListFooter(); ?>	
                        </td>
                    </tr>
                </tfoot>
            </table>
            <input type="hidden" name="task" value=""/>
            <input type="hidden" name="boxchecked" value="0"/>
            
        </div>
        
    </div>
</form>
<!-- END RIGHT -->

</form>
